<{include file="public/header.html"}>
        <div class="my-pic">
            <span>提现记录</span>
        </div>
		<div class="xinsu-section" style="padding-top: 43px;">
			<div class="xinsu-equity" style="height: 50px;line-height: 50px;">
				<div class="xinsu-tab">
				 	<div class="xinsu-tab-con">
						<form class="xinsu-form" method="get">
							<input style="margin-top:1%;margin-left:3%;width: 31%;height:36px;text-align: center;" id="start_time" class="xinsu-input" type="text" readonly name="start_time" placeholder="开始日期" data-lcalendar="2011-01-1,<{date('Y-m-d')}>" value="<{if 0 != $start_time}><{$start_time}><{/if}>"/>
							<span>--</span>
							<input style="margin-right:2%;width: 31%;height:36px;text-align: center;" id="end_time"  class="xinsu-input01" type="text" readonly name="end_time" placeholder="结束日期" data-lcalendar="2011-01-1,<{date('Y-m-d')}>" value="<{if 0 != $end_time}><{$end_time}><{/if}>"/>
							<button style="width: 20%;height:36px;text-align: center;border-radius: 0px;border:none;color: white;"
									class="xinsu-btn">查询
							</button>
						</form>
					</div>
				</div>
			</div>
			<div style="height: 4px;"></div>
			<div class="xinsu-logs">
				<div class="weui-cells xinsu-cells" id="xinsu-logs-list">
					<{if empty($list) == false}>
					<{foreach $list as $val}>
					<a class="weui-cell" href="javascript:;">
						<div class="weui-cell__bd">
							<p><{$val.bank_name}></p>
							<span class="xinsu-color-gray"><{$val["addtime"]}></span>
						</div>
						<div class="weui-cell__ft">-<{$val.money}></div>
					</a>
					<{/foreach}>
					<{/if}>
				</div>
			</div>
		</div>
		<link rel="stylesheet" href="<{STATIC_SERVER}>/mobile/css/lCalendar.css" />
		<script src="<{STATIC_SERVER}>/mobile/js/lCalendar.js"></script>
		<script>
			//日期选择控件
			var calendar = new lCalendar();
			calendar.init({
				'trigger': '#start_time',
				'type': 'date'
			});
			//日期选择控件
			var calendar = new lCalendar();
			calendar.init({
				'trigger': '#end_time',
				'type': 'date'
			});
			
			//自动加载
			var p = 2;
			var tmp = 0;
			var url = "/atm/<{$common_info.action}>/<{$start_time}>/<{$end_time}>/";
			
			$(window).scroll(function() {
				var scrollTop = $(this).scrollTop();
				var scrollHeight = $(document).height();
				var windowHeight = $(this).height();
				if (scrollTop + windowHeight == scrollHeight) {
					if (tmp != p) {
						//防止重复执行
						tmp = p;
						http_request_post(url + p, {}, function(result){
							if (result.status == 1 && result.data != "") {
								var html = "";
								$.each(result.data, function(key, val){
									html += '<a class="weui-cell" href="javascript:;">\
												<div class="weui-cell__bd">\
													<p>'+val.bank_name+'</p>\
													<span class="xinsu-color-gray">'+val.add_time+'</span>\
												</div>\
												<div class="weui-cell__ft">-'+val.money+'</div>\
											</a>';
								})
								$("#xinsu-logs-list").append(html);
								p ++;
							}
						});
					}
				}
			});
		</script>
<{include file="public/footer.html"}>